<template>
  <div class="">
    <div @click="test()">click++ 计数器-{{index}}</div>
    <p>google 翻译英文时 ， vue双向绑定 => 监听变化</p>
    <div>
      v-html or v-model:
      <span v-html="index"></span>
      <input type="text" v-model="index">
    </div>
  </div>
</template>
 
<script>
export default {
  name: 'vueName',
  data () {
    return {
      index:0
    }
  },
  methods: {
    test() {
      this.index++
    }
  }
}
</script>
 
<style scoped lang="less">
 
</style>